# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
s='hello,world'
s1=s[:5:]
s2=s[6:]
s3='!'
print(s1,s2,s3)
print(s1+s3+s2)
print(id(s1),'\n',id(s2),'\n',id(s3))
'''完整参数的切片'''
print(s[1:5:2])
print(s[::2])
print(s[::-1])
print(s[-6::1])             #这个和列表不一样，从起始位到字符串的最后一个元素